imx: hab: Fix usage of packed attribute
authorBryan O'Donoghue <[email protected]>
Fri, 9 Mar 2018 13:07:19 +0000 (13:07 +0000)
committerStefano Babic <[email protected]>
Sun, 11 Mar 2018 14:59:51 +0000 (15:59 +0100)
commitffab61f4aaed85d1a1d7543a0ef1d949fabbdf84
tree22ba9a000897d2320895e4f00958be96301fcf29
parent2b0bc4766152acd66b3cc4770d54bcc961b5843d
imx: hab: Fix usage of packed attribute

commit ed286bc80e9d ("imx: hab: Check if CSF is valid before authenticating
image") makes use of "__packed" as a prefix to the "struct hab_hdr"
declaration.

With my compiler "gcc version 7.2.1 20171011 (Linaro GCC 7.2-2017.11)" we
get:

./arch/arm/include/asm/mach-imx/hab.h:42:25: error: expected ‘=’, ‘,’, ‘;’,
‘asm’ or ‘__attribute__’ before ‘{’ token
 struct __packed hab_hdr {

Fix this problem by including <linux/compiler.h>

Signed-off-by: Bryan O'Donoghue <[email protected]>
Cc: Utkarsh Gupta <[email protected]>
Cc: Breno Lima <[email protected]>
Cc: Fabio Estevam <[email protected]>
Reviewed-by: Fabio Estevam <[email protected]>
arch/arm/include/asm/mach-imx/hab.h